<?php
require_once "../database/mysql.class.php";
//DAO对象，对数据库操作
//对应用户表，用户的增删改查

class dixingsetdao{

	private $db;

	public function __construct(){
		$this->db=new mysql();
	}
	
	public function Chaxun(){		
			$sql="select * from dixingset order by id;";
			return $this->db->query($sql);		
	}
	public function Update($crushval,$crushid,$img){
		//echo $crushid;
		if (isset($crushval)){
		$sql="UPDATE dixingset SET crush='".$crushval."', img='".$img."' WHERE id=".$crushid.";";
		//var_dump($sql);
		return $this->db->update($sql);
		}
	}
}






?>